<?php
/*

=====================================================
 Generic Toolbox - by Carl Wells
-----------------------------------------------------
-----------------------------------------------------
 Copyright (c) 2009 Carl Wells
=====================================================
 THIS IS COPYRIGHTED SOFTWARE
 PLEASE READ THE LICENSE AGREEMENT
=====================================================
 File: system/tbl_replace.php
-----------------------------------------------------
 Purpose: This file updates all db.
=====================================================
*/

// ----------------------------------------------
//  include CONFIG file
// ----------------------------------------------    
 	require 'config/config.php';
 	
 	
	
// ----------------------------------------------
//  Instantiate MAIN CORE class
// ----------------------------------------------    
 	require 'core/main.class.php';
 	$MAIN = new main();  
 	$action = $MAIN->getAction();
 	
 	
 	require 'db/dbCategory.class.php';
 	$UPDATE = new DbCategory();
 	
 	$UPDATE->deleteCategory( $_GET['id'], $_GET['sectorId']);
 	
 	
 	foreach ( $_POST as $key => $val ) {
 		echo ("$key : $val<br/>");
 	}
 	
    

?>

